@media screen and (min-width: 768px) {
  .cart-box {
    padding-top: 0 !important;
    padding-left: 40px !important;
    > h3 {
      color: #339bfe;
      font-size: 16px;
      line-height: 40px;
    }
  }
  .cart-box-header {
    border: 1px solid #e9e9e9;
    > h3 {
      height: 42px;
      line-height: 42px;
      background-color: #f3f3f3;
      input {
        margin: 0 20px;
        vertical-align: sub;
      }
    }
    li {
      border-top: 1px solid #e9e9e9;
      height: 180px;
      padding: 30px 0 20px;
      box-sizing: border-box;
      input[type="checkbox"] {
        margin: 0 20px;
        vertical-align: sub;
      }
      img {
        height: 100%;
        width: 130px;
      }
    }
  }

  .cart-box-left{
    float: left;
  }
  .good-box {
    display: inline-block;
    height: 100%;
    vertical-align: top;
    font-size: 14px;
    color: #333;
    margin-left: 10px;
    width: 320px;
    > h3 {
      line-height: 20px;
      max-height: 40px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical
    }
    > p {
      margin: 10px 0;
      line-height: 20px;
      height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    > h4 {
      font-size: 16px;
      font-weight: bold;
      color: #f92634;
      margin-top: 5px;
    }
  }
  .jia_jian {
    margin-left: 50px;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    border: 1px solid #cacbcb;
    span {
      display: inline-block;
      width: 30px;
      height: 30px;
      line-height: 30px;
      float: left;
      text-align: center;
    }
    span:nth-of-type(1) {
      border-right: 1px solid #cacbcb;
    }
    span:nth-of-type(2) {
      border-left: 1px solid #cacbcb;
    }
    input {
      float: left;
      height: 30px;
      width: 50px;
      border: none;
      text-align: center;
    }
  }
  .del {
    float: right;
    width: 50px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin-right: 10%;
    font-size: 14px;
    background-color: #f92634;
    color: #fff3ed;
    cursor: pointer;
  }
  .cart-box-footer {
    height: 60px;
    line-height: 60px;
    border-top: 1px solid #e9e9e9;
    input {
      margin: 0 20px;
      vertical-align: middle;
    }
    > span {
      padding: 5px 10px;
      background-color: #f92634;
      color: #fff3ed;
      font-size: 14px;
      margin-left: 20px;
    }
    div {
      float: right;
      height: 60px;
      a {
        height: 100%;
        margin-left: 20px;
        display: block;
        width: 220px;
        float: right;
        background-color: #ff461e;
        color: #fff;
        font-size: 16px;
        text-align: center;
      }
      span {
        font-size: 16px;
        font-weight: bold;
        color: #f92634;
      }
    }
  }
}

@media screen and (max-width: 767px) {
  .m-right-nr > div {
    padding: {
      left: 15px;
      right: 15px;
    }
  ;
  }
  .cart-box {
    padding-top: 0 !important;
    > h3 {
      color: #339bfe;
      font-size: 16px;
      line-height: 40px;
    }
  }
  .cart-box-header {
    border: 1px solid #e9e9e9;
    > h3 {
      height: 42px;
      line-height: 42px;
      background-color: #f3f3f3;
      input {
        margin: 0 20px;
        vertical-align: sub;
      }
    }
    li {
      border-top: 1px solid #e9e9e9;
      height: 130px;
      padding: 15px 0 10px;
      box-sizing: border-box;
      position: relative;
    }
  }

  .cart-box-left {
    width: 110px;
    float: left;
    height: 100%;
    input[type="checkbox"] {
      margin: 0 10px;
      vertical-align: sub;
    }
    img {
      height: 100%;
      width: 70px;
    }
  }

  .good-box {
    margin-left: 110px;
    height: 100%;
    vertical-align: top;
    font-size: 14px;
    color: #333;
    > h3 {
      line-height: 20px;
      max-height: 40px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical
    }
    > p {
      margin: 10px 0;
      line-height: 20px;
      height: 20px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    > h4 {
      font-size: 16px;
      color: #f92634;
      margin-top: 5px;
    }
  }
  .jia_jian {
    position: absolute;
    right: 0;
    bottom: 10px;
    overflow: hidden;
    border: 1px solid #cacbcb;
    span {
      display: inline-block;
      width: 30px;
      height: 30px;
      line-height: 30px;
      float: left;
      text-align: center;
    }
    span:nth-of-type(1) {
      border-right: 1px solid #cacbcb;
    }
    span:nth-of-type(2) {
      border-left: 1px solid #cacbcb;
    }
    input {
      float: left;
      height: 30px;
      width: 45px;
      border: none;
      text-align: center;
    }
  }
  .cart-box-footer {
    height: 60px;
    line-height: 60px;
    border-top: 1px solid #e9e9e9;
    input {
      margin: 0 20px;
      vertical-align: middle;
    }
    > span {
      padding: 5px 10px;
      background-color: #f92634;
      color: #fff3ed;
      font-size: 14px;
      margin-left: 20px;
    }
    div {
      height: 60px;
      a {
        margin-top: 8px;
        height: 45px;
        line-height: 45px;
        margin-left: 20px;
        display: block;
        width: 40%;
        float: right;
        background-color: #ff461e;
        color: #fff;
        font-size: 16px;
        text-align: center;
      }
      span {
        font-size: 16px;
        font-weight: bold;
        color: #f92634;
      }
    }
  }
}